﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Teacher
    {
        //自动属性
        public int IdNum { get; set; }
        public string TeacherName { get; set; }
        public string CourseName { get; set; }

        public void printMsg (){
            Console.WriteLine("我是{0}，我的身份证号是{1},我教的课程是{2}",this.TeacherName,this.IdNum,this.CourseName);
        
        }
    }
}
